﻿using System;

namespace Pumpkin.FrameBase
{
    public interface IFrameModule
    {
        void Init();
        void OnLoaded();
        string GetName();
        bool HasModuleEvent(string eventName);
        void RegistModuleEvent(string eventName, Action<object, object> handler);
        void TriggerModuleEvent(string eventName, object o1, object o2);
        void Dispose();
    }

    public interface IModuleComponent
    {
        void SetModule(IFrameModule module);
    }
}
